#ifndef _CMETADATAINDEX_H_
#define _CMETADATAINDEX_H_

#include <buolabase_hash.h>

class CMetaDataIndex
{
protected:
	CMetaDataIndex();
	~CMetaDataIndex();
	
public:
	void Load();

	std::string GetFilenameFor(const std::string &pFolder,bool pCreate);

	static CMetaDataIndex *GetIndex()
	{
		if(!mIndex)
			mIndex=new CMetaDataIndex;
		return mIndex;
	}

	std::unordered_map<std::string,std::string> mFolderToFile;
	std::unordered_set<std::string> mFileNames;
	
	CURL mURL;

	static CMetaDataIndex *mIndex;
};

#endif
